package cn.edu.nju.software.fantasyCard.network;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Net.Protocol;
import com.badlogic.gdx.net.Socket;
import com.badlogic.gdx.net.SocketHints;

/**
 *   创建者：            杨光 
 *   创建时间：        2014-3-2   下午3:00:24  
 */

public class NetworkConnect {
	public static final String SERVER_HOST = "localhost";
	public static final int SERVER_PORT = 9988;
	
	private Socket clientSocket;
	
	public static Socket getSocket() {
		SocketHints hints = new SocketHints();
		Socket client = Gdx.net.newClientSocket(Protocol.TCP, SERVER_HOST, SERVER_PORT, hints);
		return client;
	}
}


